# coding=utf-8
import os
import random

filepath = "data/speechocean_train"
out = open(filepath+"_shuffle.txt", 'w')
lines = []
with open(filepath+".txt", 'r') as infile:
    for line in infile:
        lines.append(line)
    lines = list(set(lines))
    print(len(lines))
    random.shuffle(lines)
    for line in lines:
        out.write(line)
